
import resources.TC_PLS_ST_PLIS06_001_ScriptHelper;
import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.object.interfaces.SAP.*;
import com.rational.test.ft.object.interfaces.WPF.*;
import com.rational.test.ft.object.interfaces.dojo.*;
import com.rational.test.ft.object.interfaces.siebel.*;
import com.rational.test.ft.object.interfaces.flex.*;
import com.rational.test.ft.object.interfaces.generichtmlsubdomain.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
import com.ibm.rational.test.ft.object.interfaces.sapwebportal.*;
/**
 * Description   : Functional Test Script
 * @author aperson3
 */
public class TC_PLS_ST_PLIS06_001_Script extends TC_PLS_ST_PLIS06_001_ScriptHelper
{
	final int parking1_index= 0;
	final int parking2_index= 1;
	final int id_index= 2;
	
	/**
	 * Script Name   : <b>TC_PLS_ST_PLIS06_001_Script</b>
	 * Generated     : <b>Apr 15, 2014 4:59:44 PM</b>
	 * Description   : Functional Test Script
	 * Original Host : WinNT Version 6.1  Build 7600 ()
	 * 
	 * @since  2014/04/15
	 * @author aperson3
	 */
	public void testMain(Object[] args) 
	{
		startApp("pantherlot_main_runnable");
		startApp("pantherlot_security_runnable");
		
		// Frame: 
		securityDisplayFrame().move(atPoint(546,21));
		startApp("pantherlot_spot_runnable");
		
		// 
		input().inputChars(dpString(parking1_index));
		ok().click();
		
		// Frame: 
		spotDisplayFrame().move(atPoint(14,373));
		startApp("pantherlot_spot2_runnable");
		
		// 
		input().inputChars(dpString(parking2_index));
		ok().click();
		
		// Frame: 
		spotDisplayFrame2().move(atPoint(448,371));
		
		// Frame: 
		//jTextField().click(atPoint(58,6));
		welcomeDisplay().inputChars(dpString(id_index));
		scanID().click();
		
		// Frame: 
		next().click();
		String text = (String)yourSpotNumberIs312().getProperty("text");
		String parking_number= ""+ text.charAt(text.length()- 3)+ 
				                   text.charAt(text.length()- 2)+ 
				                   text.charAt(text.length()- 1);
		
		// Frame: 
		next2().click();
		
		// Frame: 
		finish().click();
		
		// Frame: 
		/*welcomeDisplay().inputChars("2233432");
		scanID().click();
		
		// Frame: 
		next().click();
		
		// Frame: 
		next2().click();
		
		// Frame: 
		finish().click();*/
		
		//sleep(15.0);
		
		if(parking_number.equals(dpString(parking1_index)))
		{
			//spotDisplayFrame2().click();
			//spotDisplayFrame2().activate();
			spotDisplayFrame2().click(atPoint(204,245));
			
			// Frame: 
			spotDisplayFrame2().inputChars(dpString(id_index));
			scanID2().click();
			
			// Frame: 
			wrongParkingSpot().performTest(WrongParkingSpot_standardVP());
			leave().click();
		}
		else
		{
			spotDisplayFrame().click(atPoint(204,245));
			
			// Frame: 
			spotDisplayFrame().inputChars(dpString(id_index));
			scanID3().click();
			
			// Frame: 
			wrongParkingSpot2().performTest(WrongParkingSpot_standard_2VP());
			leave2().click();
		}
		
		// 
		//wrongParkingNotification().click(atPoint(166,7));
		wrongParkingNotification().performTest(WrongParkingNotification_standardVP());
		ok2().click();
		
		// Frame: 
		spotDisplayFrame(ANY,MAY_EXIT).close();
		
		// Frame: 
		//spotDisplayFrame2().click(atPoint(59,18));
		spotDisplayFrame2(ANY,MAY_EXIT).close();
		
		// Frame: 
		securityDisplayFrame(ANY,MAY_EXIT).close();
		
		// Frame: 
		welcomeDisplay(ANY,MAY_EXIT).close();
	}
}

